<template>
    <Return></Return>
    <div class="bigBox">
        <div class="info">
            <div class="pic">
                <p class="title" style="margin-bottom: 8.4%">课程1</p>
                <div>
                    <span class="principal">实践课题: 实践课1</span>
                </div>
                <div>
                    <span class="principal">指导老师: 老师1</span>
                </div>
                <div>
                    <span class="deadline">团队负责人: 学生1</span>
                </div>
            </div>
            <div class="infoText">
                <p class="subTitleText">成员名单</p>
                <div class="avatarList">
                    <div class="avatar" @click="showInfo"></div>
                    <div class="avatar" @click="showInfo"></div>
                    <div class="avatar" @click="showInfo"></div>
                    <div class="avatar" @click="showInfo"></div>
                    <div class="avatar" @click="showInfo"></div>
                    <div class="avatar" @click="showInfo"></div>
                    <div class="more" :class="{'unFold': more == -1}"  @click="more = -more;">
                        <i class="vxe-icon-arrow-right"></i>
                    </div>
                    <ShowOtherInfo :isShowInfo="isShowInfo" @close="close"></ShowOtherInfo>
                    <div class="moreAvatar" v-show="more == -1">


                </div>
                </div>
            
            </div>
            <button class="showMember" style="right: 17.5%;" @click="router.push('/ManageTeamGrades')">成绩概览</button>
            <button class="showMember" @click="showGradeMember">成员评分</button>
            <GradeMember :showGradeTeamMemberWin="showGradeTeamMemberWin"  @close="close"></GradeMember>
        </div>
        <div class="teacherList">
            <p class="subTitle" style="margin-top: 2%;">
            <div class="subTitleText">实践材料</div>
            </p>
            <div class="table">
                <div class="tableHeader">
                    实践日志
                </div>
                <div class="journalCon demo-1"  @click="showPracticeLog" >
                </div>
            </div>
            <div class="table">
                <div class="tableHeader" style="margin-top:2%">
                    实践成品 （文件类）
                </div>
                <div class="fileTable">
                    <!-- <div class="file" v-if="curData.fileId != undefined" @click="uploadFile">
                        <img :src="fileImg" alt="">
                        实践成品.zip
                    </div> -->
                </div>
            </div>
            <div class="commentBox">
                <div class="tableHeader" style="border: 0px; height: 16%;">
                    课题总评价
                </div>
                <textarea name="" id="" cols="33" rows="10" class="comment" placeholder="请输入评价信息...">

                </textarea>
            </div>
        </div>
        <div class="but">
            <button>确认</button>
        </div>
    </div>
</template>
<script setup>
import GradeMember from '../../../components/GradeTeamMember.vue';
import ShowOtherInfo from'../../../components/ShowOtherInfo.vue'
import Return from '../../../components/Return.vue'
import fileImg from '../../../assets/images/teacher/myStudent/zip.svg'

import { onMounted, ref, watch } from 'vue'
import { useRouter} from 'vue-router'

const router = useRouter();

//给他人评分
const showGradeTeamMemberWin = ref(false);
const showGradeMember = function(){
    showGradeTeamMemberWin.value = true;
}

//展开成员
const more = ref(1)

//查看成员
const showMemberWin = ref(false)
const showMember = function () {
    showMemberWin.value = true;
}

//查看他人信息
const isShowInfo = ref(false)
const showInfo = function(){
    isShowInfo.value = true;
}

//关闭他人信息窗口
const close = function(){
    isShowInfo.value = false
    showGradeTeamMemberWin.value = false
}

const practiceLog = ref()
//查看实践日志
const showPracticeLog = function(e){
    let log = document.querySelectorAll('.journalCon'); 
    console.log(e.target);
    if(e.target.nodeName == 'LI'){
        router.push('/PracticeLog')
    }
}


</script>
<style scoped>
.bigBox {
    width: 100%;
    height: 100%;
    background-color: white;
    padding: 4.6%;
    padding-top: 3.8%;
    box-shadow: 0px 3px 6px 0px 
		rgba(0, 0, 0, 0.16);
}

.info {
    width: 100%;
    /* height: 200px; */
    display: flex;
    align-items: flex-end;
}

.pic {
    max-width: 31.8%;
}
.pic span{
    word-wrap: break-word;
}

.infoText {
    width: 60%;
    margin-left: 6.8%;
    height: 100%;
    padding-bottom: 2%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.avatarList {
    width: 90%;
    margin-top: 1.8%;
    height: 64px;
    border-bottom: #707070 1px solid;
    padding-right: 8%;
}
.avatar{
    width: 56px;
	height: 56px;
	background-color: #707070;
    border-radius: 28px;
	opacity: 0.33;
    cursor: pointer;
    margin-right: 4%;
    float: left;
}

.more{
    color: #707070;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    transition: 0.3s;
    float: left;
    margin-top: 3%;
    margin-left: 2%;
}
.unFold{
    transition: 0.3s;
    transform: rotate(90deg);
    transform-origin: center center;
}
.moreAvatar{
    /* width: 77%; */
    /* height: 40%; */
    background-color: #fafafa;
    position: absolute;
    top: 101%;
    z-index: 10;
    opacity: 0.8;
    box-shadow: 0px 0.6px 3.7px 0.1px #aaa;
    padding-right: 6%;
}
.moreAvatar .avatar{
    margin-top: 1%;
}
.title {
    font-family: Source Han Sans CN;
    font-size: 2em;
    font-weight: bolder;
    font-stretch: normal;
    letter-spacing: 0px;
    color: #707070;
}

.showMember {
    position: absolute;
    width: 160px;
    height: 36px;
    background-color: #8493a6;
    box-shadow: 0px 3px 6px 0px rgba(0, 0, 0, 0.16);
    border-radius: 6px;
    right: 0%;
    border: 0px;
    cursor: pointer;
    outline: none;
    font-family: Source Han Sans CN;
    font-size: 16px;
    font-weight: normal;
    font-stretch: normal;
    line-height: 27px;
    letter-spacing: 0px;
    color: #fafafa;
    top: 0%;
}

.showMember:hover {
    background-color: #707070;
    transition: 0.2s;
}


.principal,
.deadline {
    font-family: Source Han Sans CN;
    font-size: 19px;
    font-weight: normal;
    font-stretch: normal;
    line-height: 47px;
    letter-spacing: 0px;
    color: #707070;
    width: 100%;
}

.teacherList {
    height: 72%;
    width: 100%;
}

.subTitle {
    display: flex;
    justify-content: space-between;
    margin-top: 6%;
    align-items: flex-end;
}

.subTitleText {
    font-family: Source Han Sans CN;
    font-size: 1.6em;
    font-weight: bolder;
    font-stretch: normal;
    line-height: 41px;
    letter-spacing: 0px;
    color: #707070;
}

.table {
    width: 100%;
    height: 139px;
    margin-top: 1%;
}

.tableHeader {
    width: 100%;
    height: 21%;
    font-family: Source Han Sans CN;
    font-size: 18px;
    font-weight: normal;
    font-stretch: normal;
    line-height: 31px;
    letter-spacing: 0px;
    color: #6f6f6f;
    background-color: #e7e7e7;
    border: solid 1px #707070;
    padding-left: 1.2%;
    display: flex;
    align-items: center;

}

.journalCon {
    height: 71%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 0.6%;
    overflow-y: scroll;
    border:  solid 1px #707070;
    border-top: 0px;
}

.journalLis {
    width: 96%;
    height: 31px;
    font-family: Source Han Sans CN;
    font-size: 1em;
    border-bottom: 1px solid #707070;
    font-weight: normal;
    font-stretch: normal;
    line-height: 27px;
    letter-spacing: 0px;
    color: #707070;
    padding-left: 5.5%;
    list-style: none;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
}

/*滚动条整体样式*/
.demo-1::-webkit-scrollbar {
    margin-top: 3%;
    width: 6px;
    /*高宽分别对应横竖滚动条的尺寸*/
    height: 0px;
}

/*滚动条里面小方块*/
.demo-1::-webkit-scrollbar-thumb {
    border-radius: 10px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
    background-color: #d4d4d4;
    opacity: 0.3;
}

/*滚动条里面轨道*/
.demo-1::-webkit-scrollbar-track {
    /* box-shadow   : inset 0 0 5px rgba(0, 0, 0, 0.2); */
    border-radius: 10px;
}

.date {
    font-family: Source Han Sans CN;
    font-size: 0.9em;
    font-weight: normal;
    font-stretch: normal;
    line-height: 24px;
    letter-spacing: 0px;
    color: #707070;
    display: flex;
    width: 11.7%;
    align-items: center;
    justify-content: space-between;
}

.date img {
    margin-left: 1%;
}

.commentBox {
    width: 100%;
    height: 214px;
    background-color: #ffffff;
    border: #707070 1px solid;
margin-top: 2%;
}

.comment {
    width: 100%;
    height: 177px;
    outline: none;
    font-family: Source Han Sans CN;
    font-size: 16px;
    font-weight: normal;
    font-stretch: normal;
    line-height: 27px;
    letter-spacing: 0px;
    background-color: #ffffff;
    resize: none;
    padding: 1.4%;
    padding-top: 1.6%;
    color: #707070;
    border: 0px;
}

.but {
    display: flex;
    justify-content: flex-end;
}

.but button {
    width: 160px;
    height: 36px;
    background-color: #8493a6;
    box-shadow: 0px 3px 6px 0px rgba(0, 0, 0, 0.16);
    border-radius: 6px;
    font-family: Source Han Sans CN;
    font-size: 16px;
    font-weight: normal;
    font-stretch: normal;
    line-height: 27px;
    letter-spacing: 0px;
    color: #fafafa;
    border: 0px;
    cursor: pointer;
}

.but button:hover {
    background-color: #707070;
}

.fileTable{
    width: 100%;
    height: 80px;
    background-color: #ffffff;
	border: solid 1px #707070;
    border-top: 0px;
    display: flex;
    align-items: center;
    padding-top: 1.3%;
}
.file{
    padding-left: 3%;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #707070;
    font-size: 14px;
}
.file img{
    width: 32px;
	height: 32px;
    cursor: pointer;
}
.file img:hover{
    opacity: 0.5;
}
</style>